/**
 * 
 */
package com.feib.stms.batch.dao.rowmapper;

import java.sql.ResultSet;
import java.util.Date;

import org.springframework.jdbc.core.RowMapper;

import com.feib.stms.batch.domain.BusinessDay;



/**
 * @author Lion Gao
 *
 */
public class BusinessDayRowMapper extends BaseRowMapper<BusinessDay> implements RowMapper<BusinessDay> 
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 7013444461770495403L;
	
	
	public BusinessDayRowMapper() {
		super(BusinessDay.class);
	}
	
	
	@Override
	protected BusinessDay doOtherMapRow(ResultSet rs, int rowNumber, BusinessDay entity) 
	{
		entity.setTheDate((Date)getColumnValue(rs, "THE_DATE", Date.class));
		entity.setStatus((String)getColumnValue(rs, "STATUS", String.class));
		entity.setUpdatedBy((String)getColumnValue(rs, "UPDATED_BY", String.class));
		entity.setUpdatedDate((Date)getColumnValue(rs, "UPDATED_DATE", Date.class));
		return entity;

	}

}